package ooday05;

public class Student {
    private String name;//私有成员变量
    private int age;
    private String address;

    public Student(String name, int age, String address) {//构造方法
        this.name = name;
        this.age = age;
        this.address = address;
    }

    public String getName() {//获取name
        return name;
    }

    public void setName(String name) {//修改name
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getAddress() {
        return address;
    }
    public void setAddress(String address) {
        this.address = address;
    }
}

